
//
//  CZConst.swift
//  weibo
//
//  Created by Ken on 16/3/21.
//  Copyright © 2016年 Ken. All rights reserved.
//

import UIKit

/// 自定义Log,需要在build settings 里面搜索 preprocessor Macros (OC的配置方式), 在搜索 swift flag 配置debug "-D" "DEBUG"
func CZPrint(file: String = __FILE__, line: Int = __LINE__,function: String = __FUNCTION__,msg: Any){
    #if DEBUG
        print("\((file as NSString).lastPathComponent)[\(line)行], \(function): \(msg)")
    #endif
    

}

let CZBaseURL = NSURL(string: "https://api.weibo.com/")

// MARK: - 授权登录相关
/// 申请应用时分配的 AppKey
let client_id = "1735837692"

let client_secret = "fd1935301356df853f0d588c2c124dec"

///授权回调地址
let redirect_uri = "http://www.baidu.com/"


///MARK: -
let CZDefaultDuration:NSTimeInterval = 0.25

///新特性界面页数
let CZNewFeatuerPageCount = 4

// MARK: - 微博cell相关
let CZStatusCellMargin: CGFloat = 8

let CZStatusCellContentSize: CGFloat = 14

let CZStatusCellBottomDefaultFontSize: CGFloat = 11

/// MARK: - 微博 cell 配图相关
/// 配图之间的间距
let CZStatusPictureMargin: CGFloat = 10

/// 配图最大列数
let CZStatusPictureMaxColumn = 3

/// 配图 cell 的大小(屏幕宽度-配图左右的间距 - cell之间的间距) / cell的数量
let CZStatusPictureCellWH = (UIScreen.width - 2 * CZStatusCellMargin - CGFloat(CZStatusPictureMaxColumn - 1) * CZStatusPictureMargin) / CGFloat(CZStatusPictureMaxColumn)



